package com.ruoyi.school.knowledge.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 知识点管理对象 school_knowledge
 * 
 * @author qiang
 * @date 2022-06-26
 */
public class Knowledge extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据库编号 */
    private Long id;

    /** 知识点名 */
    @Excel(name = "知识点名")
    private String name;

    /** 知识点内容 */
    @Excel(name = "知识点内容")
    private String content;

    /** 课程id */
    @Excel(name = "课程id")
    private Long courseId;

    /** 章节id */
    @Excel(name = "章节id")
    private Long chapterId;

    /** 排序 */
    @Excel(name = "排序")
    private Long orderNum;

    /** 类型(0知识点1实例) */
    @Excel(name = "类型(0知识点1实例)")
    private Long type;

    /** 知识点id */
    @Excel(name = "知识点id")
    private Long kId;

    /** 源码地址 */
    @Excel(name = "源码地址")
    private String sourceUrl;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtCreate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtModified;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Long userId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setChapterId(Long chapterId) 
    {
        this.chapterId = chapterId;
    }

    public Long getChapterId() 
    {
        return chapterId;
    }
    public void setOrderNum(Long orderNum) 
    {
        this.orderNum = orderNum;
    }

    public Long getOrderNum() 
    {
        return orderNum;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setkId(Long kId) 
    {
        this.kId = kId;
    }

    public Long getkId() 
    {
        return kId;
    }
    public void setSourceUrl(String sourceUrl) 
    {
        this.sourceUrl = sourceUrl;
    }

    public String getSourceUrl() 
    {
        return sourceUrl;
    }
    public void setGmtCreate(Date gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setGmtModified(Date gmtModified) 
    {
        this.gmtModified = gmtModified;
    }

    public Date getGmtModified() 
    {
        return gmtModified;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("content", getContent())
            .append("courseId", getCourseId())
            .append("chapterId", getChapterId())
            .append("orderNum", getOrderNum())
            .append("type", getType())
            .append("kId", getkId())
            .append("sourceUrl", getSourceUrl())
            .append("gmtCreate", getGmtCreate())
            .append("gmtModified", getGmtModified())
            .append("remark", getRemark())
            .append("userId", getUserId())
            .toString();
    }
}
